package design_pattern.responsibilitychain;

public class Client {
    public static void main(String[] args) {
        ConcreateHandler1 handler1 = new ConcreateHandler1(null);
        ConcreateHandler2 handler2 = new ConcreateHandler2(handler1);
        Request request1 = new Request(RequestType.type1, "request1");
        handler2.handleRequest(request1);
        Request request2 = new Request(RequestType.type2, "request2");
        handler2.handleRequest(request2);
    }
}
